package io.rocketman.transport.channel.handler;

import io.rocketman.transport.channel.Channel;

/**
 * @author He Peng
 * @create 2018-05-25 0:25
 * @update 2018-05-25 0:25
 * @updatedesc : 更新说明
 * @see
 */
public interface ChannelHandler {

    void connect(Channel channel);

    void disconnect(Channel channel);

    void exceptionCaught(Channel channel , Throwable t);

    void send(Channel channel , Object message);

    void received(Channel channel , Object message);

    void channelClose(Channel channel);
}
